﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DataTemplate x:Key="DefaultSettingsView">
        <Grid DataContext="{Binding Path=SettingsViewModel}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="22" />
                <RowDefinition Height="*" />
                <RowDefinition Height="34" />
            </Grid.RowDefinitions>

            <StackPanel Orientation="Horizontal">
                <TextBlock>Feed Reader Settings</TextBlock>
            </StackPanel>

            <ListBox Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                     ItemsSource="{Binding Path=FeedInfos}"
                     SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <CheckBox IsChecked="{Binding Path=Enabled, Mode=TwoWay}" />
                            <TextBlock Text="{Binding Path=Url}" Width="540" />
                            <TextBlock Text="{Binding Path=FeedType}" />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="2">
                <Button Command="{Binding Path=AddCommand}" Content="{Binding Path=AddCommand.Text}" Margin="4" />
                <Button Command="{Binding Path=EditCommand}" Content="{Binding Path=EditCommand.Text}" Margin="4" />
                <Button Command="{Binding Path=RemoveCommand}" Content="{Binding Path=RemoveCommand.Text}" Margin="4" />
            </StackPanel>
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="SmallFeedImage">
        <Image Source="/Jacobi.Seesmic.FeedReader;component/Resources/Feed16.png" Width="12" Height="12" />
    </DataTemplate>

</ResourceDictionary>